Skip to content

Conversation

@davidlattimore
Copy link
Owner

Fixes: #459

We previously only kept such sections if they had the retain bit set.

This should match the behaviour of GNU ld and also of lld when -z
nostart-stop-gc is set. We now treat `-z nostart-stop-gc` as a no-op rather
than warning.

The custom sections test is updated to not use the retain bit, since it isn't
needed anymore. This also allowed that test to enabled for cross compilation,
which was disabled due to the use of the retain bit.

Fixes: #459
@davidlattimore davidlattimore merged commit 0f98910 into main Feb 22, 2025
12 checks passed
@davidlattimore davidlattimore deleted the push-prpokvlvrpoy branch February 22, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linkme crate doesn't link with wild

2 participants